#define DEBUG
#include <cstdio>

using namespace std;

const int maxn=1000, maxk=3, mods=998244353;

int main() {
  freopen("count.in", "r", stdin);
  freopen("count.out", "w", stdout);

  static int f[maxk+1][maxn+1];
  int n, m, k;
  scanf("%d %d %d", &n, &m, &k);
  f[0][0] = 1;

  for (int i=1; i<=k; i++) {
    for (int j=1; j<=n; j++) {
      for (int k=1; k<=j; k++) {
	if (k%m) {
	  f[i][j] = (f[i][j]+f[i-1][j-k])%mods;
	}
      }
    }
  }
  printf("%d", f[k][n]);

  fclose(stdin);
  fclose(stdout);
  return 0;
}
